package com.xmy.cultivate.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.xmy.cultivate.entity.Admin;
import com.xmy.cultivate.entity.Area;
import org.apache.ibatis.annotations.Result;
import org.apache.ibatis.annotations.ResultType;
import org.apache.ibatis.annotations.Results;
import org.apache.ibatis.annotations.Select;
import org.apache.poi.ss.formula.functions.T;
import org.springframework.data.repository.query.Param;

import java.util.List;

/**
 * <p>
 * 区域表 Mapper 接口
 * </p>
 *
 * @author hpiggy
 * @since 2025-02-09
 */
public interface AreaMapper extends BaseMapper<Area> {

    @Select("select id,pid,name from area limit 10")
    <T> List<T> findByTypeForOne(@Param("stationsId") String stationsId, @Param("type") String type);
}
